/***********************************************************************
 * Module:  VOUser.java
 * Author:  vitman
 * Purpose: Defines the Class VOUser
 ***********************************************************************/
package dbLayer;

import boLayer.BOUser;

/** @pdOid 3b7e0084-6fac-4f55-a001-df7ea702937a */
public class VOUser extends VOGeneral {
	/** @pdOid f75722ec-2b66-4c5f-bdf8-ad973de2e7bc */
	private VONomUserRoles userRole;
	/** @pdOid 9aa5bd34-4a04-46c3-a7f0-c23a1311c69c */
	private String username;
	/** @pdOid 83cf0971-8064-4856-ac5b-52e3ace6290d */
	private String password;

	private String firstName;

	private String secondName;

	private String thirdName;

	private String egn;

	private String mail;

	/** @pdOid 433c4022-1d31-41ab-b27d-2d9d9cf524e0 */
	public VONomUserRoles getUserRole() {
		return userRole;
	}

	public VOUser() {
		super();
	}

	public VOUser(VONomUserRoles userRole, String username, String password) {
		super();
		this.userRole = userRole;
		this.username = username;
		this.password = password;
	}

	public VOUser(BOUser user) {
		this.username = user.getUsername();
		this.password = user.getPassword();
		this.firstName = user.getFirstName();
		this.secondName = user.getSecondName();
		this.thirdName = user.getThirdName();
		this.egn = user.getEgn();
		this.mail = user.getMail();
	}

	/**
	 * @param newUserRole
	 * @pdOid eefe0af0-eee9-4e01-8e9f-cff3ebeb15a2
	 */
	public void setUserRole(VONomUserRoles newUserRole) {
		userRole = newUserRole;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getSecondName() {
		return secondName;
	}

	public void setSecondName(String secondName) {
		this.secondName = secondName;
	}

	public String getThirdName() {
		return thirdName;
	}

	public void setThirdName(String thirdName) {
		this.thirdName = thirdName;
	}

	public String getEgn() {
		return egn;
	}

	public void setEgn(String egn) {
		this.egn = egn;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

}